#pragma once

#include<windows.h>
#include<d3d9.h>
#include<d3dx9.h>
#include "DataDef.h"
#include "ErrorHandler.h"
#include "TextureManager.h"

// Handling all graphical requests
class GraphicsModule
{
public:
	GraphicsModule(void);

	~GraphicsModule(void);
	//Init
	bool initGraphics(HWND han_Window);

	//Reference to the windows and d3d device
	LPDIRECT3DDEVICE9 p_Device;

private:

	LPDIRECT3DDEVICE9 InitializeDevice(HWND han_WindowToBindTo);
	HWND NewWindow(const LPCTSTR str_Title, const int int_XPos, const int int_YPos, const int int_Width, const int int_Height);
};
